<form *ngIf="selectedNode" (ngSubmit)="onCommitForm()">
  Name: <input name="name" [(ngModel)]="data.name" />
  Boss: <input name="parent" [(ngModel)]="data.parent" />
  <button type="submit">Commit</button>
</form>